package com.ruoyi.system.utils;


import com.ruoyi.common.core.domain.R;

import java.util.Map;

public class ApiUtils {
    public static boolean CheckParamListEmpty(Map dataMap, R r, String[] arr) {
        boolean b = true;
        for (String key : arr) {
            if (!dataMap.containsKey(key) ||dataMap.get(key)==null|| dataMap.get(key).toString().isEmpty()) {
                r.setMsg(key + "不能为空");
                r.setCode(1);
                b = false;
                break;
            }
        }
        return b;
    }
}

